#!/bin/bash -le

#-l above (login shell) so that /etc/profile runs so that perl is
# on the path.

#-e so that if any command has an exit code != 0, this script will
#  exit immediately.

# Python is python 3, but gnucash doesn't work with python 3. There
# doesn't seem to be a way to tell automake to use /usr/bin/python2,
# so we'll mock this up
mkdir autotools_bin
ln -s /usr/bin/python2 autotools_bin/python
export PATH=/autotools_bin:"$PATH"
echo path is "$PATH"
echo python version is "$(python --version)"

../commonbuild
